﻿
@{
    ViewBag.Title = "Backup_coyp";
}

<h2>Backup_coyp</h2>

<div>
    <div class="zhu-pai">
        <div title="客户" class="zhu1">
            <div class="zhu-fen">
                <div>
                    <h6 id="kehu_A">@(Session["KEhu_z"])</h6>
                    <h5 class="">客户总人数</h5>
                </div>
                <i class="bi bi-person-square"></i>
            </div>
            <footer> @Html.ActionLink("更多信息", "CliView", new { Controller = "Application", Action = "CliView" }, new { @class = "", @style = "background: no-repeat;color:#007bff" }) <i class="bi bi-arrow-right-circle-fill"></i></footer>
        </div>
        <div title="物料" class="zhu1">
            <div class="zhu-fen">
                <div>
                    <h6 id="kehu_A">@(Session["wuliao"])</h6>
                    <h5 class="">物料总数</h5>
                </div>
                <i class="bi bi-person-square"></i>
            </div>
            <footer> @Html.ActionLink("更多信息", "Index", new { Controller = "Formations", Action = "Index" }, new { @class = "", @style = "background: no-repeat;color:#007bff" }) <i class="bi bi-arrow-right-circle-fill"></i></footer>
        </div>
        <div title="申请计数合计" class="zhu1">
            <div class="zhu-fen">
                <div>
                    <h6 id="kehu_A">@(Session["shen_z"])</h6>
                    <h5 class="">申请单总数</h5>
                </div>
                <i class="bi bi-bar-chart-line-fill"></i>
            </div>
            <footer> @Html.ActionLink("更多信息", "Index", new { Controller = "Home", Action = "Index" }, new { @class = "", @style = "background: no-repeat;color:#007bff" }) <i class="bi bi-arrow-right-circle-fill"></i></footer>
        </div>
        <div title="申请计数本月" class="zhu1">
            <div class="zhu-fen">
                <div>
                    <h6 id="kehu_A">@(Session["shen_y"])</h6>
                    <h5 class="">申请计数本月</h5>
                </div>
                <i class="bi bi-bar-chart-line-fill"></i>
            </div>
            <footer> @Html.ActionLink("更多信息", "Index", new { Controller = "Home", Action = "Index" }, new { @class = "", @style = "background: no-repeat;color:#007bff" }) <i class="bi bi-arrow-right-circle-fill"></i></footer>
        </div>
    </div>
    @* <div title="报表打印" class="tab1 " style="margin-top:10px;height:500px">
            <h5 style="color: lightslategrey;">报表显示（当天）</h5>
            <table id="Tenm" class="table table-sm" >
                <thead class="table-light">
                    <tr style="text-align-last:center;">
                        <th scope="col">序号</th>
                        <th scope="col" id="Dan">申请单号</th>
                        <th scope="col">客户名称</th>
                        <th scope="col">项目名称</th>
                        <th scope="col">发起时间</th>
                        <th scope="col">截止时间</th>
                        <th scope="col"></th>
                        <th scope="col"></th>
                        <th scope="col"></th>
                    </tr>
                </thead>
                <tbody data-spy="scroll" id="BoTa">
                    @foreach (var item in ViewBag.C_App as List<Applications>)
                    {
                        <tr>
                            <td></td>
                            <td style="display:none">@item.App_id</td>
                            <td id="Dan" style="color:#2a6bcc;">@item.AP_bian</td>
                            <td class="sr-only C_jin" style="display:none" id="poi">@item.App_bu</td>
                            <td>@item.App_Kehu</td>
                            <td>@item.APP_name</td>
                            <td>@item.App_qishi</td>
                            <td>@item.App_JTime</td>
                            <td style="display:none" id="shun">@item.APP_fenL</td>
                            <td><button id="Yulan">预览</button></td>
                            <td><button id="Dayin" >打印</button></td>
                            <td><button id="Sanchu">删除</button></td>
                        </tr>
                    }
                </tbody>
            </table>

        </div>*@
</div>

@section scripts {
    <script src="~/Scripts/jquery-3.4.1.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    <script>
        $(function () {
            $("#Yulan,#Dayin,#Sanchu").css({ "border": 0 })
            var len = $("#BoTa tr").length
            for (var i = 0; i < len; i++) {
                $("#BoTa tr:eq("+i+") td:nth-child(1)").text(i+1)
            }
            $(document).on("click", "#Dayin", function (e) {
                var shjied = $(e.target).parent().prev().prev().prev().prev().prev().prev().prev().text()
                window.location.href = "/Home/Quotation_to_be_generated";
            })
            $(document).on("click", "#Yulan", function (e) {
                var shji = $(e.target).parent().prev().prev().prev().prev().prev().prev().prev().text()
                window.location.href = "/Detailed/BOMView?names=" + shji;
            })
            $(document).on("click", "#Sanchu", function (e) {
                var shjisw = $(e.target).parent().prev().prev().prev().prev().prev().prev().prev().text()

            })
        })
    </script>
}